﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Volo.Abp.Application.Dtos;

namespace mozhi.smarterp.Business.Purchases.ProductPrice
{
    public class PurchaseProductPriceUpdateDto : EntityDto<Guid>
    {
        public Guid? SupplierId { get; set; }

        [Required]
        public string Code { get; set; }

        [Required]
        public string Name { get; set; }

        [Required]
        public Guid CurrencyId { get; set; }

        public bool IncludeTax { get; set; }

        public List<PurchaseProductPriceItemUpdateDto> Items { get; set; }
    }

    public class PurchaseProductPriceItemUpdateDto : EntityDto<Guid?>
    {
        [Required]
        public Guid ProductId { get; set; }

        [Required]
        public decimal Price { get; set; }

        public Guid? TaxRateId { get; set; }

        public decimal? MinQuantity { get; set; }

        public decimal? MaxQuantity { get; set; }

        public DateTime EffectiveDate { get; set; }

        public DateTime ExpirationDate { get; set; }
    }
}
